package cn.cloudtogo.common.atomapi.token;

import lombok.Data;

/**
 * @author yaolianhua789@gmail.com
 **/
@Data
public class ApiResource {

    private String method;
    private String path;

    public static ApiResource of(String method, String path) {
        ApiResource apiResource = new ApiResource();

        apiResource.setMethod(method);
        apiResource.setPath(path);

        return apiResource;
    }

    public enum ResourceLevel {
        //
        SCHEMA, TABLE
    }

}
